package com.alibaba.algo.components.yapi.enums;

/**
 * @Description: contentType 枚举类
 * @author: malin
 * @date: 2020-12-4 17:03:03
 */
public enum ContentTypEnum {
	JSON("application/json", "jsonRequestHandler"), FORM_DATA("multipart/form-data", "formRequestHandler"),
	QUERY("/", "queryRequestHandler"), FORM("application/x-www-form-urlencoded", "formRequestHandler");

	private String contentType;
	private String handler;

	ContentTypEnum(String contentType, String handler) {
		this.contentType = contentType;
		this.handler = handler;
	}

	public String getHandler() {
		return handler;
	}

	public static void main(String[] args) {
		System.out.println(ContentTypEnum.JSON.getHandler());
	}
}
